package com.trio.zjq.service;

import com.trio.zjq.dao.UserInfoDao;
import com.trio.zjq.dao.impl.UserInfoDaoImpl;
import com.trio.zjq.entity.UserInfo;
import com.trio.zjq.utils.PropertiesUtil;
import org.junit.Test;

import java.util.List;

/**
 * 用户的业务逻辑处理.
 *
 * @author 张俊强~.
 * @date 2017/11/21-13:58.
 */
public class UserInfoService {

    @Test
    public void testGetSession() {
        UserInfoDao userInfoDao=new UserInfoDaoImpl();
        List<UserInfo> userInfoList=userInfoDao.findUserList();
        for(UserInfo userInfo :userInfoList){
            System.out.println("userInfo->"+userInfo.toString());
        }
    }

    @Test
    public void testPropertiesUtil() {

        System.out.println(PropertiesUtil.getInt("jdbc.password"));

    }

}
